﻿<UserControl x:Class="HelloKinkuma.Silverlight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:l="clr-namespace:HelloKinkuma.Silverlight"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:my="http://www.codeplex.com/prism" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my1="clr-namespace:Okazuki.MVVM.PrismSupport.Interactivity;assembly=Okazuki.MVVM.PrismSupport.Silverlight">
    <UserControl.DataContext>
        <l:MainPageViewModel />
    </UserControl.DataContext>
    <Grid x:Name="LayoutRoot" Background="White">
        <i:Interaction.Triggers>
            <my:InteractionRequestTrigger SourceObject="{Binding Path=AlertRequest}">
                <my1:MessageBoxTriggerAction Title="情報" />
            </my:InteractionRequestTrigger>
        </i:Interaction.Triggers>
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="11,11,0,0" Name="button1" VerticalAlignment="Top" Width="75" Command="{Binding Path=GreetCommand}" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="11,40,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" Text="{Binding Path=Input, Mode=TwoWay}">
            <i:Interaction.Behaviors>
                <my:UpdateTextBindingOnPropertyChanged />
            </i:Interaction.Behaviors>
        </TextBox>
    </Grid>
</UserControl>
